package com.mioto.ld.module.alert.model;

import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 联动触发器实体
 * @author mioto
 * @date 2024-05-20 23:49:40
 */
@Data
@ApiModel(value = "联动触发器")
public class LinkageTrigger implements Serializable{

    private static final long serialVersionUID=LinkageTrigger.class.getName().hashCode();
    

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "联动配置id")
    private Integer linkageId;

    @ApiModelProperty(value = "触发对象 1-设备 2-事件 3-定时任务")
    private Integer triggerTarget;

    @ApiModelProperty(value = "触发对象id 如果是设备触发 为产品对应的属性id 如果是事件触发 为产品对应的事件id")
    private Integer targetId;

    @ApiModelProperty(value = "触发条件")
    private String triggerCondition;

    @ApiModelProperty(value = "排序号")
    private Integer sortNo;
    
}